package com.demo.user.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;

/**
 * 登录记录(UserLoginLog)表实体类
 *
 * @author makejava
 * @since 2023-03-28 16:19:42
 */
@ToString
@Data
@RequiredArgsConstructor
@AllArgsConstructor // lombok 的注解，用来生成 全参构造函数
@Entity
@Table(name = "bl_user_login_log")
public class UserLoginLog implements Serializable {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id", nullable = false)
  private Integer id;

  private Integer sid;

  private Integer userId;

  private Date loginTime;

  private String loginIp;

  private String loginPort;
  // 更新时间
  private Date updateTime;
  // 源院校站点ID
  private Integer originSid;
  // 源表主键ID
  private Integer originId;
}
